package org.example.service;

import org.springframework.core.env.Environment;
import javax.annotation.Resource;

/**
 * @author zhaomu
 */
public class AppServiceImpl implements AppService {

    @Resource
    private Environment environment;

    @Override
    public String app() {
        return environment.getProperty("spring.application.name");
    }
}
